package com.mall.controller;

import com.mall.common.CommonResult;
import com.mall.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author 李茂鑫
 * @Date 2025/1/17 17:21
 * @Descripition
 */
@RestController
@Tag(name = "用户控制器")
@RequestMapping("/user")
public class UserController {
    @Resource
    UserService userService;
    @PostMapping
    @Operation(summary = "测试接口")
    public CommonResult getUser(){
        return CommonResult.success(userService.list());
    }
}
